package com.xingzuo.library_astrolabe.ui.fragment;

import android.view.View;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.xingzuo.base.app.AppActivityKey;
import com.xingzuo.base.ui.mvp.base.ui.BaseMvpFragment;
import com.xingzuo.library_astrolabe.R;
import com.xingzuo.library_astrolabe.R2;
import com.xingzuo.library_astrolabe.contract.AstrolabeDetailContract;
import com.xingzuo.library_astrolabe.presenter.AstrolabeDetailPresenter;

import butterknife.BindView;
import butterknife.OnClick;

@Route(path = AppActivityKey.ASTROLABEFRAGMENT)
public class AstrolabeFragment extends BaseMvpFragment<AstrolabeDetailPresenter> implements AstrolabeDetailContract.View {
    @BindView(R2.id.iv_dangan)
    ImageView ivDangan;
    @BindView(R2.id.tv_note)
    RadioButton tvNote;
    @BindView(R2.id.tv_set)
    TextView tvSet;

    @Override
    public AstrolabeDetailPresenter getPresenter() {
        return new AstrolabeDetailPresenter();
    }

    @Override
    public int getViewId() {
        return R.layout.fragment_astrolabe;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {

    }

    @OnClick({R2.id.iv_dangan, R2.id.tv_note, R2.id.tv_set})
    public void onViewClicked(View view) {
        int id = view.getId();
        if (id == R.id.iv_dangan) {

        } else if (id == R.id.tv_note) {
            startIntent(AppActivityKey.NOTEACTIVITY);
        } else if (id == R.id.tv_set) {
            startIntent(AppActivityKey.ASTROLABESETACTIVITY);
        }
    }
}